/*
 * Created on 2005-1-11
 */
package org.nanhill.commons.lang;

/**
 * @author wang lin
 * 
 */
public abstract class BooleanKit {

	public static Boolean valueOf(String in) {
		if (null == in) {
			return new Boolean(false);
		} else if ("1".equals(in)) {
			return new Boolean(true);
		} else if ("0".equals(in)) {
			return new Boolean(false);
		}
		return new Boolean(in);
	}
}